package com.zbj.homemade.mybatis;

import com.zbj.homemade.mybatis.conf.Configuration;

import java.util.List;

/**
 * @program: principle
 * @description:
 * @author: Yinn
 * @create: 2019-01-11 16:41
 **/
public interface SqlSession {

    <T> T selectOne(String statement, Object parameter);

    int insert(String statement, Object parameter);

    <E> List<E> selectList(String statement, Object parameter);

    int delete(String statement, Object parameter);

    int update(String statement, Object parameter);

    <T> T getMapper(Class<T> type);

    Configuration getConfiguration();
}
